<?php
class PaymentGateway {
	function collect($login,$password,$amount,$card_number,$expiration,$name){
		printf('this is genuine PaymentGateway#collect()');
		return false;
	}
}
class PaymentGateway {
	function collect($login,$password,$amount,$card_number,$expiration,$name){
		printf('this is rewrite PaymentGateway#collect()');
		return true;
	}
	
}

$p = new PaymentGateway;
$p->collect();
printf("HOGE?");
?>
